<!doctype html>
<html lang="en">
<head>
	<title>栏目列表</title>
	<meta charset='utf-8'/>
	<script type="text/javascript" src="__STATIC__/hdjs/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__STATIC__/hdjs/hdjs.min.js"></script>
</head>
<body>
<div class="hd-menu-list">
	<ul>
		 <li class="active"><a href="{|U:'index'}"> 栏目列表 </a></li>
		 <li><a href="{|U:'add'}"> 添加顶级栏目 </a></li>
		 <li><a href="{|U:'update_cache'}"> 更新栏目缓存 </a></li>
	</ul>
</div>
<div>
	<table class='hd-table hd-table-list'>
		<thead>
			<tr>
				<td class='hd-w50'>CID</td>
				<td>栏目名称</td>
				<td class='hd-w150'>操作</td>
			</tr>
		</thead>
		<list from='$category' name="$c">
		<tr>
				<td>{$c.cid}</td>
				<td>{$c._name}</td>
				<td>
					<a href="{|U:add,array('pid'=>$c['cid'])}">添加子栏目</a> |
					<a href="{|U:edit,array('cid'=>$c['cid'])}">编辑</a> |
					<a href="{|U:del,array('cid'=>$c['cid'])}">删除</a>
				</td>
			</tr>
		</list>
	</table>
</div>
</body>
</html>
